home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 3
/
Precision Software Applications Silver Collection Volume Three (PSM) (1993).iso
/
music2
/
moded301.arj
/
RAW2SAM.DOC
< prev
next >
Wrap
Text File
|
1992-11-30
|
3KB
|
76 lines
----------------------------------------------------------------------
Raw sound to SAM converter
----------------------------------------------------------------------
Version 1.10 (12/01/92)
Jim Dahl
1. PURPOSE
RAW2SAM.EXE converts raw sound files (and some VOC's, see 4) to .SAM files
suitable for use in ModEdit. VOC files, such as those recorded by the
sound blaster, and WAV files do not work directly in ModEdit as samples.
Therefore, to create instruments for ModEdit from VOC or RAW sound files,
a conversion utility is required.
2. USAGE
After typing 'RAW2SAM' on the command line, the program will prompt for
an input file name and an output file name. The output file name will
default to the first eight characters of the input file name with a '.SAM'
extension.
Instead of using the interactive mode, the user can also type:
RAW2SAM InFile [OutFile]
If both an input file and an output file are specified, the program will
execute the conversion. If only and input file is specified, the program
will prompt for an output file, with a default value of the first eight
characters of the input file name with a '.SAM' extension.
It is recommended that the '.SAM' extension be used, as ModEdit will only
recognize those samples which have an '.SAM' extension.
RAW2SAM assumes that the OutFile should be overwritten if it already exists
and therefore does not prompt or warn the user.
3. FUNCTION
RAW2SAM converts the sound data from the input file from unsigned to signed
sound data. (Most popular sound types, including VOC files, use unsigned
data; SAM files use signed data).
RAW2SAM was written in assembly, then PKLITE'd so it is very compact and
time efficient.
4. USAGE TIPS - RAW and VOC FILES
ModEdit assumes the sample will be a middle C, sampled at 8000hz. This
corresponds to C2 in ModEdit, the default instrument pitch. It is
recommended that all samples be middle C sampled at 8000hz, otherwise
pitch adjustments will be necessary in the MOD file.
Though VOC files are not raw sound, the header is very small, and
can be ignored. The only problems with converting VOC files arise when
there are multiple blocks within VOC files, varying sampling rates within
the same VOC, special commands (such as repeats) within the VOC, VOC
compression (any type), or other data within the VOC which is not raw
sound data.
I have also included a utility VOC2RAW.EXE which claims to convert .VOC
files to .RAW sound files suitable for conversion to .SAM files. I have
performed only light testing on it, and do not warrant its usability. In
most cases it should not be required.
I can be contacted at:
Internet
JADAHL@NDSUVM1
City Lites BBS
(701) 775-1143 (2400- baud)
(701) 772-5399 (9600+ baud)
e-mail Jim Dahl